/*
 * CSafeSingleton_test.cpp
 *
 *  Created on: Jan 11, 2012
 *      Author: hzheng
 */

#include "SafeSingleton.h"
#include "gtest/gtest.h"
namespace NS_LCD_AFW
{
class CSafeSingleton_test: public ::testing::Test
{
public:
	virtual void SetUp()
	{
	}
	virtual void TearDown()
	{
	}
};
TEST_F(CSafeSingleton_test,test_defualtConstruction)
{
}
TEST_F(CSafeSingleton_test,test_getInstance)
{
	int *pInt1 = &CSafeSingleton<int>::getInstance();
	int *pInt2 = &CSafeSingleton<int>::getInstance();
	EXPECT_EQ(pInt1,pInt2);
}
} /* namespace NS_LCD_AFW */
